package com.wanmait.bootdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class)
//如果不配置包的扫描，默认会扫描启动类所在的包及其子包下面的类
//如果配置了包的扫描，则默认扫描的配置失效
//@ComponentScan({"com.wanmait.controller","com.wanmait.bootdemo"})
@MapperScan("com.wanmait.bootdemo.mapper")//mapper接口的自动扫描

public class BootdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootdemoApplication.class, args);
        /*SpringApplication application = new SpringApplication(BootdemoApplication.class);
        //关闭banner条显示
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);*/
    }

}
